package com.example.directoryoperations.unit13;

import java.io.*;
 
class Main{
    public static void main(String[] args){
        File[] roots = File.listRoots();
        System.out.println("系统所有根目录：");
        for (File root : roots) {
            System.out.println(root.toString());
        }
    }
}